package src;

public class MyClass {
	
	synchronized public  String method1() {
		System.out.println("method1");
		method2();
		return null; 
	}
	
	synchronized public  String method2() {
		System.out.println("method2");
		return  null;
	}

}
